package com.ruoyi.base.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 试验类型业务对象 base_sy_type
 *
 * @author zyb
 * @date 2024-04-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SyTypeBo extends TreeEntity<SyTypeBo> {

    /**
     * 试验类型id
     */
    @NotNull(message = "试验类型id不能为空", groups = { EditGroup.class })
    private Long syTypeId;

    /**
     * 试验类型名称
     */
    @NotBlank(message = "试验类型名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String syTypeName;

    /**
     * 祖籍列表
     */
//    @NotBlank(message = "祖籍列表不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ancestors;

    // 排序
    private Integer sort;

    // 类别
    private String type;

    // 层级
    private Integer level;

    private Long parentId;

    // 试验标识
    private String identification;

    /**
     * 内部试验标识
     */
    @NotBlank(message = "内部试验标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String innerFlag;

    /**
     * 试验大类
     */
//    @NotNull(message = "试验大类不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long syBigType;


}
